Documentation ¶
Overview ¶
You should have received a copy of the GNU General Public License along with this program. If not, see <https://www.gnu.org/licenses/>.
Index ¶
Constants ¶
View Source
const ( SaltLength = 12 // 12 Random Bytes are required to generate Salt Iterations = 101 // Default Iterations when using PBDFK2_SHA512 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Credentials ¶
Credentials Structure
func (Credentials) GeneratePBKDF2 ¶
func (cred Credentials) GeneratePBKDF2() (saltB64, digestB64 string)
Generate PBKDF2 SHA512 Encryption for Generated Salt
func (Credentials) GenerateSHA512 ¶
func (cred Credentials) GenerateSHA512() (saltB64, digestB64 string)
Generate the Bas64 Encoded SHA512 Digest for the Password + Salt Combination
Click to show internal directories.
Click to hide internal directories.