// UnlockProtectedEntries goes through the entire database and encrypts
// any Values in entries with protected=true set.
// This should be called after decoding if you want to view plaintext password in an entry
// Warning: If you call this when entry values are already unlocked, it will cause them to be unreadable
UnlockProtectedEntries goes through the entire database and encrypts
any Values in entries with protected=true set.
This should be called after decoding if you want to view plaintext password in an entry
Warning: If you call this when entry values are already unlocked, it will cause them to be unreadable
// UnlockProtectedEntries goes through the entire database and encrypts // any Values in entries with protected = true set . // This should be called after decoding if you want to view plaintext password in an entry // Warning : If you call this when entry values are already unlocked it will cause them to be unreadable
func (db *Database) UnlockProtectedEntries() error {
	manager, err := db.GetStreamManager()
	if err != nil {
		return err
	}
	if manager == nil {
		return ErrUnsupportedStreamType
	}
	manager.UnlockProtectedGroups(db.Content.Root.Groups)
	return nil
}
func ( db * Database ) UnlockProtectedEntries ( ) error { manager , err := db . GetStreamManager ( ) if err != nil { return err } if manager == nil { return ErrUnsupportedStreamType } manager . UnlockProtectedGroups ( db . Content . Root . Groups ) return nil }
UnlockProtectedEntries goes through the entire database and encrypts
any Values in entries with protected=true set.
UnlockProtectedEntries goes through the entire database and encrypts any Values in entries with protected = true set .