goog.storage.EncryptedStorage
Classgoog.storage.EncryptedStorage
> goog.storage.CollectableStorage
> goog.storage.ExpiringStorage
> goog.storage.RichStorage
> goog.storage.Storage
goog.storage.EncryptedStorage(mechanism, secret)
Provides an encrypted storage. The keys are hashed with a secret, so their existence cannot be verified without the knowledge of the secret. The values are encrypted using the key, a salt, and the secret, so stream cipher initialization varies for each stored value.
mechanism
{!goog.storage.mechanism.IterableMechanism
}
secret
{string
}
.SALT_KEY
[protected] {string
}Metadata key under which the salt is stored.
.collect(opt_strict)
Inherited from goog.storage.CollectableStorage
.
Cleans up the storage by removing expired keys.
opt_strict
{boolean
=}
.get(key)
Inherited from goog.storage.RichStorage
.
Get an item from the data storage.
key
{string
}
.getWrapper()
.mechanism
[protected] {goog.storage.mechanism.Mechanism
}Inherited from goog.storage.Storage
.
The mechanism used to persist key-value pairs.
.remove()
.set()