Hint returns a masked, identifiable fragment of the key, suitable for logs and persisted records.
()
| 120 | // Hint returns a masked, identifiable fragment of the key, suitable |
| 121 | // for logs and persisted records. |
| 122 | func (k *Key) Hint() string { |
| 123 | return utils.MaskSecret(k.value) |
| 124 | } |
| 125 | |
| 126 | // State returns the current state of the key, derived from its |
| 127 | // permanent flag and cooldown deadline. |
no test coverage detected