{"modulePath":"github.com/dnote/cli","version":"v0.6.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package crypt\n\nPackage crypt provides cryptographic funcitonalities\n\n## Functions\n\n```go\nfunc AesGcmDecrypt(key []byte, dataB64 string) ([]byte, error)\n```\nAesGcmDecrypt decrypts the encrypted data using AES in a GCM mode. The data should be a base64 encoded string in the format of 12 byte nonce followed by a ciphertext.\n\n```go\nfunc AesGcmEncrypt(key, plaintext []byte) (string, error)\n```\nAesGcmEncrypt encrypts the plaintext using AES in a GCM mode. It returns a ciphertext prepended by a 12 byte pseudo-random nonce, encoded in base64.\n\n```go\nfunc MakeKeys(password, email []byte, iteration int) ([]byte, []byte, error)\n```\nMakeKeys derives, from the given credential, a key set comprising of an encryption key and an authentication key\n\n","path":"github.com/dnote/cli/crypt","name":"crypt","synopsis":"Package crypt provides cryptographic funcitonalities","isRedistributable":true}
