Skip to content

Base64s (with "s" standing for "secure") is a derivative encoding scheme of Base64.

License

Notifications You must be signed in to change notification settings

takashiharano/base64s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Base64s

Base64s (with "s" standing for "secure") is a derivative encoding scheme of Base64.
The data to be encoded is XORed with the given key before encoding.
The encrypted data is seemingly Base64 encoded characters, but it is impossible to decode in Base64.
The detail of the mechanism is available at https://b64s.com/

Usage

Java:

String encoded = Base64s.encode("abc", "xyz");
String decoded = Base64s.decodeString("GRsZAA==", "xyz");

JavaScript:

var encoded = base64s.encode('abc', 'xyz');
var decoded = base64s.decode('GRsZAA==', 'xyz');

Python:

encoded = base64s.encode_string('abc', 'xyz')
decoded = base64s.decode_string('GRsZAA==', 'xyz')

PowerShell:

$encoded = Get-Base64sEncodedString "abc" "xyz"
$decoded = Get-Base64sDecodedString "GRsZAA==" "xyz"

Visual Basic:

Dim encoded As String
Dim decoded As String
encoded = Base64s.EncodeString("abc", "xyz")
decoded = Base64s.DecodeString("GRsZAA==", "xyz")

Notice

Base64s is not intended to be used where secrecy is of any concern.

About

Base64s (with "s" standing for "secure") is a derivative encoding scheme of Base64.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published