Пример #1
0
func Upgrade(b bucket.Bucket) bucket.Bucket {
	key := secretkey.New()
	return bucket.NewRecoverableBucket(
		bucket.NewEncryptedBucket(b, key),
		PromptLog,
	)
}
Пример #2
0
func upgradeBucket(b bucket.Bucket, key *secretkey.Key) bucket.Bucket {
	return bucket.NewRecoverableBucket(bucket.NewEncryptedBucket(b, key), plog)
}