vodafone-station-cli
Version:
Access your Vodafone Station from the comfort of the command line.
12 lines (11 loc) • 632 B
TypeScript
import sjcl from 'sjcl';
export interface BitParams {
authData: sjcl.BitArray;
iv: sjcl.BitArray;
prf: sjcl.SjclCipher;
}
export declare function prepareParameters(derivedKey: string, ivHex: string, authData: string): BitParams;
export declare function deriveKey(password: string, salt: string): string;
export declare function deriveKeyTechnicolor(password: string, salt: string): string;
export declare function encrypt(derivedKey: string, plainText: string, ivHex: string, authData: string): string;
export declare function decrypt(derivedKey: string, cipherTextHex: string, ivHex: string, authData: string): string;