C# Class MegaApi.Crypto

Show file Open project: redwyre/MegaApi

Public Methods

Method Description
a32_to_base64 ( uint a ) : string
a32_to_str ( uint a ) : byte[]
base64_to_a32 ( string s ) : uint[]
base64urldecode ( string data ) : byte[]
base64urlencode ( byte bytes ) : string
decrypt_key ( Sjcl cipher, uint a ) : uint[]
encrypt_key ( Sjcl cipher, uint a ) : uint[]
prepare_key ( uint a ) : uint[]
prepare_key_pw ( string password ) : uint[]
str_to_a32 ( byte b ) : uint[]
str_to_a32 ( string b ) : uint[]
stringhash ( string s, Sjcl aes ) : string

Method Details

a32_to_base64() public static method

public static a32_to_base64 ( uint a ) : string
a uint
return string

a32_to_str() public static method

public static a32_to_str ( uint a ) : byte[]
a uint
return byte[]

base64_to_a32() public static method

public static base64_to_a32 ( string s ) : uint[]
s string
return uint[]

base64urldecode() public static method

public static base64urldecode ( string data ) : byte[]
data string
return byte[]

base64urlencode() public static method

public static base64urlencode ( byte bytes ) : string
bytes byte
return string

decrypt_key() public static method

public static decrypt_key ( Sjcl cipher, uint a ) : uint[]
cipher Sjcl
a uint
return uint[]

encrypt_key() public static method

public static encrypt_key ( Sjcl cipher, uint a ) : uint[]
cipher Sjcl
a uint
return uint[]

prepare_key() public static method

public static prepare_key ( uint a ) : uint[]
a uint
return uint[]

prepare_key_pw() public static method

public static prepare_key_pw ( string password ) : uint[]
password string
return uint[]

str_to_a32() public static method

public static str_to_a32 ( byte b ) : uint[]
b byte
return uint[]

str_to_a32() public static method

public static str_to_a32 ( string b ) : uint[]
b string
return uint[]

stringhash() public static method

public static stringhash ( string s, Sjcl aes ) : string
s string
aes Sjcl
return string