Skip to content

Instantly share code, notes, and snippets.

@RayyanNafees
Created August 4, 2020 08:52
Show Gist options
  • Save RayyanNafees/9e3acf5a9c3f65548a4820aa57baf9c3 to your computer and use it in GitHub Desktop.
Save RayyanNafees/9e3acf5a9c3f65548a4820aa57baf9c3 to your computer and use it in GitHub Desktop.
from flask import Flask
app = Flask(__name__)
@app.route('/ncrypt/<phrase>')
def binary(phrase): return ' '.join(format(ord(c), 'b') for c in phrase)
if __name__=='__main__': app.run()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment