Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1079983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:57:30+00:00 2026-05-16T21:57:30+00:00

How can I encrypt/decrypt with fuzzy tolerance? I want to be able to use

  • 0

How can I encrypt/decrypt with fuzzy tolerance?

I want to be able to use a Stroke on an InkCanvas as key for my encryption but when decrypting again the user should not have to draw the exact same symbol, only similar. Can this be done in .NET C#?

— Update (9 sep) —

What I ideally want is an encryption algorithm that would accept any key in a certain range of keys based on some base-key and a function defining the allowed differences ..

Im doing all encryption/decryption locally so I wont need to send anything over a wire safely. And I dont want to store the key used for encryption, so I wont have anything to compare with. I could come up with some method to generate the same key for every similar stroke but its not easy if a want to accept any kind of symbol (not only letters). The other option is if the encryption key somehow could accept similar keys by design, which I dont know if its possible…?

  • 1 1 Answer
  • 3 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:57:31+00:00Added an answer on May 16, 2026 at 9:57 pm

    OK. Let’s break your problem into two.

    1) Fuzzy
    2) Encryption

    Reality is both these concepts are relatively old and their implementation have been out there for years. Each deals with the problem at hand very well but this does not mean that combining these two is a good idea. I believe you have to have your solution as a two-stage approach.

    First of all encryption standards out there are great in securing the data using a SINGLE EXACT key. In your case you need symmetric encryption algos such as AES or Rijndael.

    Fuzzy part of the solution is also not that hard. Like any other fuzzy recognition technique, you need to do a feature extraction and create a vector to be passed to the encryption algo. You need to build fuzziness into your features. For example, number of strokes, quadrant of the start point for each stroke, a factor of curviness for each stroke and the like. This will be enough to build a 32 bit vector to pass to the encryption algorithm.

    UPDATE

    I will try to make it more illustrative:

    2 bits for number of strokes: 1, 2, 3, +3 which translates to 00, 01, 10 and 11

    2 bits for quadrant of the start of the first stroke: TopLeft, TopRight, BottomLeft, BottomRightt encodes to 00, 01, 10 and 11

    2 bits for quadrant of the end of the first stroke: ditto

    2 bits for quadrant of the start of the second stroke: ditto. If no second stroke then 00.

    2 bits for quadrant of the end of the second stroke: ditto. If no second stroke then 00.

    2 bits for quadrant of the start of the third stroke: ditto. If no third stroke then 00.

    2 bits for quadrant of the end of the second stroke: ditto. If no third stroke then 00.

    2 bits for curviness of the first stroke: straight->00 … Nice round->11. This is not going to be very easy and you might reduce the degrees of curviness to 2 and use just one bit but it is a “suck it and see”.

    So this is 16 bits. You can leave the rest as zero for now and try and see how it works.

    Hope this helps.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

how can i encrypt/decrypt string with cer file and private key in java do
I want to create an application that can encrypt and decrypt my passwords using
I want to use RSA algorithm , for encrypt and decrypt messages. Now, as
I want to create a program, which can encrypt and decrypt a complete file
I am writing a Java application which can encrypt and consequently decrypt whatever binary
How can I Encrypt on iPhone Decrypt the same data in an ASP.NET application?
I have to encrypt/decrypt some sensitive information in a Xml file? Yes I can
Is there any javascript function that can encrypt data: For example i want to
Can anybody point me in the right direction to be able to encrypt a
Where can I find a RSA encrypt example that does not use NoPadding? --update

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.