Skip to content

Instantly share code, notes, and snippets.

View bhattaraib58's full-sized avatar

Biplap Bhattarai bhattaraib58

View GitHub Profile
@sbimochan
sbimochan / faker.md
Created August 25, 2020 09:14
Faker for dummy.
pip install faker
vim ~/faker_for_testing.py

Hit i

Paste these

@sbimochan
sbimochan / Guidance.md
Last active April 27, 2021 06:05
Basic measures you should take to prevent Web vulnerabilities

Prevent Web Vulnerabilities

It's a shame to see all those nepal's government and ecommerce sites getting hacked. I'd like to call out all Pentesters out there that can at least share out some docs, links that could make our government systems secure. The purpose of this document to have a single source to eliminate overwhelming results from google. Security is very wide domain just like development. You should dedicate some hours to prevent from basic vulnerabilities if you follow these steps. There are already lots of tools that are making life of developers easy.

@gowhari
gowhari / vigenere-cipher.py
Created May 23, 2018 10:24
vigenere cipher
# encoding: utf8
# vigenere cipher
# https://stackoverflow.com/a/2490718/1675586
def encode(key, string):
encoded_chars = []
for i in range(len(string)):
key_c = key[i % len(key)]
encoded_c = chr(ord(string[i]) + ord(key_c) % 256)
encoded_chars.append(encoded_c)