mirror of
https://github.com/FlipsideCrypto/DefinitelyTyped.git
synced 2026-02-06 10:56:53 +00:00
11 lines
237 B
TypeScript
11 lines
237 B
TypeScript
import Cryptr = require('cryptr');
|
|
|
|
// $ExpectType Cryptr
|
|
const cryptr = new Cryptr('myTotallySecretKey');
|
|
|
|
// $ExpectType string
|
|
const encrypted_string = cryptr.encrypt('bacon');
|
|
|
|
// $ExpectType string
|
|
cryptr.decrypt(encrypted_string);
|