How to create Auto Destroying Messages in Django ?

Auto Destroying Message

  • Auto Destroy Message after Reading
  • Auto Destroy functionality comes handy when you want to share critical data with someone like user credentials.

AIM

  • Create Mission Impossible like auto deletion message.
  • Maintain high level of encryption.
  • No loop holes so handle DB attack also.

Features

  • Creates Encrypted Messages.
  • Unique hashed URL is provided on message creation this can be communicated to other user.
  • The message self destroy itself after reading from the user side.
  • Even if DB security is compromised, no-one will be able to access the message which is send to other user as everything is encrypted.
  • When the message is read, we deletes the message and save the IP address of the user and the time of reading the note.
  • Bootstrap UI is provided.

GITHUB

3 thoughts on “How to create Auto Destroying Messages in Django ?

  1. Ni Hau,

    Muchas Gracias Mi Amigo! You make learning so effortless. Anyone can follow you and I would not mind following you to the moon coz I know you are like my north star.

    I have a program like below
    Python Code: (Double-click to select all)
    1
    2
    3
    4
    5
    6
    7
    8
    9 import pytablewriter
    writer = pytablewriter.MarkdownTableWriter()
    writer.table_name = “example_table”
    writer.header_list = [“SERVICE NAME”, “TEAM NAME”, “CI OWNER”, “SECONDARY CONTACT”, “PAYCHECK NAME”, “DEV”, “DEVII”,”QA”, “STAGE”, “PROD”, “PROD”]
    writer.value_matrix = [
    [“accommodation”, “POSE”, “Donker”,”Khavarian”,”Acc”, “Yes”, “Yes”, “Yes”,”Yes”,”Yes”,”Yes”],
    [“activity-entity”, “Reg”,”Chang”, “John”, “TER”, “Yes”, “Yes”, “Yes”, “Yes”, “Yes”, “Yes”],
    ]
    writer.write_table()

    This works well.. but my requirment is

    1. I have hardcoded values for value_matrix above..instead I have a csv file which has around 340 rows , instead of hardcoding these into program , i need to read that file and store all rows in the value_matrix

    2. now once we have all 340 rows are written into matrix, I want to pass SERVICE NAME which is first field in csv i.e in above example code accommodation as run time paramater so that it will output only that row…

    THANK YOU!! This saved my butt today, Iā€™m immensely grateful.

    Shukran,
    Ajeeth

    Like

Leave a comment