Skip to content

Instantly share code, notes, and snippets.

View Hunam6's full-sized avatar
😀

Hunam (Elie TD) Hunam6

😀
View GitHub Profile
@Hunam6
Hunam6 / howto.md
Last active April 6, 2024 02:45
How to Generate a SHA-256 from your password

Windows

Open Command Prompt.

Paste this command and replace your-password with your password.

echo|set /p="your-password" > %TMP%/hash.txt | certutil -hashfile %TMP%/hash.txt SHA256 | findstr /v "hash"

MacOS

import term
import rand
import os
fn main() {
mut height := 0
for {
height = os.input('Enter the christmas tree height (an integer greater than 4): ').int()
if height > 4 {
break