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 3606454
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:15:01+00:00 2026-05-18T21:15:01+00:00

I am serving a few MP3 files from my site, which are over 1

  • 0

I am serving a few MP3 files from my site, which are over 1 MB in size. I doubt others are hotlinking to the file because my CDN charges are going up without much difference in visits.

I am looking for a simple encryption, so that I can change the filename every 3-4 hours. I a more interested in a fast 2-way algorithm than the strength of encryption. Can someone suggest a fast encryption for this purpose.

Is encyption using mcrypt fast?

  • 1 1 Answer
  • 0 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-18T21:15:01+00:00Added an answer on May 18, 2026 at 9:15 pm

    I’m unclear why you want encryption for this. It sounds like you just want a way to generate a link that isn’t predictable, except by you. Taking an HMAC of a secret key, timestamp, and file identifier should do that for you. You can then make the HMAC part of the file name, along with the timestamp and file identifier. Verify them in your PHP script by computing the HMAC again and checking it against the one from the URI.

    HMAC is not encryption, it’s actually authentication/integrity, but its secure when used with a reasonable hash. Normally, I’d recommend SHA-256 or better, but for what you’re doing MD5 sounds secure enough. Finding HMAC-MD5 code shouldn’t be a problem. MD5 speed won’t be a problem unless you’re generating LOTS (millions per hour) of links.

    (Authentication/integrity in this case means that the HMAC can only be generated by someone with your secret key as well as the public timestamp & file identifier).

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

Sidebar

Related Questions

I have a few sites. Each site is a localized version serving up content
I'm having issues serving out static (image) files from an Azure + MVC 3
Serving javascript libraries from a CDN instead of your own server comes with tremendous
I'm serving a javascript file from my server. How do I prevent direct linking
Yesterday I asked about serving byte ranges from PHP. Today my question is -
I'm serving up some files via an HTTPModule in asp.net. I want to know
I was serving html referencing svg files in Cassini , and having problems since
I'm serving a semi-static site with rails, just to get used to rails conventions.
I have a controller in MVC serving up images from a database. EDIT: This
So I see that there are a few Rails plugins for serving AMF .

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.