Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dzień 3 #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Dzień 3 #9

wants to merge 4 commits into from

Conversation

RadekM86
Copy link

@RadekM86 RadekM86 commented Feb 1, 2018

No description provided.

Copy link
Contributor

@Ami777 Ami777 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Eleganckie rozwiązanie

algorithmList.filter(algorithm=>{
const encrypted = crypto.createHmac(algorithm, password).digest('hex');
(encrypted === MY_PWD_HASH)&&console.log(`hasło to: ${password} ; algorytm to: ${algorithm}`)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taka podpowiedź: czytelniejszy były tu if.

const sentence = "Pobawmy się jak komputerowy Detektyw";
let wordsList = [];
wordsList = sentence.split(' ').filter(word=>{password = password + word[0] + word[word.length-1]})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Super!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants